package com.ikun.controller;

import com.ikun.domain.User;
import com.ikun.producer.ProducerDemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname RockerController
 * @Description TODO
 * @Date 2025/3/3 21:20
 * @Created by Song zuo gang
 */
@RestController
public class RockerController {

    @Autowired
    ProducerDemo producerDemo;


    @PostMapping("sendMessage")
    public void sendMessage(@RequestBody User user){
        System.out.println("user"+user);
        producerDemo.sendMessage(user);
    }



}
